package net.dengzixu.java.homework.period29;

/**
 * @author Deng Zixu <admin@dengzixu.com>
 */
public class Test {
    public static void main(String[] args) {
        Clothing clothing = new Clothing(200, 2, "男装");

        System.out.println(clothing);
    }
}


abstract class Goods {
    double unitPrice;
    int account;

    abstract double totalPrice();
}

interface VipPrice {
    double DISCOUNT = 8.5;

    void reducedPrice();
}

class Clothing extends Goods implements VipPrice {

    private final String style;

    public Clothing(double unitPrice, int account, String style) {
        this.unitPrice = unitPrice;
        this.account = account;
        this.style = style;
    }

    @Override
    double totalPrice() {
        return this.unitPrice * this.account;
    }

    @Override
    public void reducedPrice() {

    }

    @Override
    public String toString() {
        return "Clothing{" +
                "unitPrice=" + unitPrice +
                ", account=" + account +
                ", style='" + style + '\'' +
                "} ";
    }
}